<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Bevestiging reservaties</title>
<link rel="stylesheet" href="styles/default.css" />
</head>
<body>
<h1>Het cultuurhuis: Bevestiging reservaties
<c:url value="/images/bevestig.png" var="bevestiging" />
		<img src="${bevestiging}" alt="ge zijt bevestigd!" /></h1>

<c:url value="/welkom.htm" var="url"/>
<a href="${url}">Voorstellingen</a>	
<c:url value="/reservatiemandje.htm" var="mandjeurl"/>
<a href="${mandjeurl}">Reservatiemandje</a>

<h2> Stap 1: Wie ben je?</h2>
<form method="post" action="${pageContext.servletContext.contextPath}/bevestiging.htm">
<label> Gebruikersnaam: <input type="text" name= "Gebruikersnaam" value="${param.Gebruikersnaam}" /></label>
<label> Paswoord: <input type="password" name= "Paswoord" value="${param.Paswoord}" /></label>
<input type="submit" value="Zoek me op" <c:if test="${not empty klant}">disabled="disabled"</c:if>/>
</form>
<form method="get" action="${pageContext.servletContext.contextPath}/nieuweklant.htm">
<input type="submit" value="Nieuwe klant" <c:if test="${not empty klant}">disabled="disabled"</c:if>/></form>
<c:choose><c:when test="${not empty klant}">${klant.voornaam} ${klant.familienaam} ${klant.straat} ${klant.huisNr} ${klant.gemeente}</c:when>
<c:otherwise><span class="fout">${fout}</span></c:otherwise></c:choose>
<h2>Stap 2: Bevestigen</h2>
<form method="get" action="${pageContext.servletContext.contextPath}/gedanereserveringen.htm">
<input type="submit" value="Bevestigen" <c:if test="${empty klant}">disabled="disabled"</c:if>/></form>
</body>
</html>